import { PromiseData } from '@/@types/request'
import request from '@/utils/request'
import { TableParams, TableList } from './data'

// 获取页面数据
export const getTableList = (data: TableParams): Promise<PromiseData<TableList>> =>
  request.post('/dataEscalationExamine/search', data)

// 省市管理员数据首页导出
export const deportDataExport = (data: { dataReportQuarter: string; dataReportYear: string }): Promise<Blob> =>
  request.post('/dataEscalationExamine/deportDataExport', data, { responseType: 'blob' })
